<ui:composition template="/WEB-INF/templates/login-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="menu"></ui:define>
	<ui:define name="submenu"></ui:define>
	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">	
		 	
		
	<h:form> 
		 <p:growl/>
		
		<h:outputText value="Create Feedback" styleClass="outputTextTitle"/>	
	   
	    <h:panelGrid >
		
        <p:panel header="Technical Details To Be Filled By Interviewer / Lead Consultants"> 
	        <h:panelGrid columns="3" cellspacing="10" style="width: 100%" columnClasses="employeeDetailLabel,gridCellMiddleLeftAligned">  	          
	           <h:outputLabel value="RRF Code" />
	           <h:outputLabel value=":" />
	           <h:outputLabel value="#{createFeedBackBean.rrfCode}" readonly="true" />
	          
	           <h:outputLabel value="Technology" />
	           <h:outputLabel value=":" />
	           <h:outputLabel value="#{createFeedBackBean.recruitmentProfile.technology}" readonly="true"  />
	           
	           <h:outputLabel value="Candidate Name" />
	           <h:outputLabel value=":" />
	           <h:outputLabel value="#{createFeedBackBean.recruitmentProfile.candidateName}" readonly="true" />
	          
	           <h:outputLabel value="Candidate Email" />
	           <h:outputLabel value=":" />
	           <h:outputLabel value="#{createFeedBackBean.recruitmentProfile.candidateEmail}" />
	           
	           <h:outputLabel value="Candidate Contact" />
	           <h:outputLabel value=":" />
	           <h:outputText value="#{createFeedBackBean.recruitmentProfile.candidateMobileNumber}"/>	           
	       </h:panelGrid>
       </p:panel>  
       
       
       <p:panel header="Skill Ratings scale[1-small and 10- High ]">       
       <h:panelGrid  cellpadding="10" style="width: 100%">  
           
           <p:dataTable value="#{createFeedBackBean.skillRatings}" var="skillRatings">
	
				<p:column headerText="Skill Area">
						<h:outputText value="#{skillRatings.rrfSelectedSkill.skillName}" />
				</p:column>
				<p:column headerText="Rating">
						 <p:selectOneMenu value="#{skillRatings.skillRating}" style="width:50px;">
			           		<f:selectItem itemLabel="0" itemValue="0" />
							<f:selectItem itemLabel="1" itemValue="1" />
							<f:selectItem itemLabel="2" itemValue="2" />
							<f:selectItem itemLabel="3" itemValue="3" />
							<f:selectItem itemLabel="4" itemValue="4" />
							<f:selectItem itemLabel="5" itemValue="5" />
							<f:selectItem itemLabel="6" itemValue="6" />
							<f:selectItem itemLabel="7" itemValue="7" />
							<f:selectItem itemLabel="8" itemValue="8" />
							<f:selectItem itemLabel="9" itemValue="9" />
							<f:selectItem itemLabel="10" itemValue="10" />
			           </p:selectOneMenu> 
				</p:column>
				<p:column headerText="Remarks">
						<p:inputTextarea value="#{skillRatings.skillRemarks}" style="width:300px;" rows="1" autoResize="false" />
				</p:column>
					
		   </p:dataTable>
        </h:panelGrid>
        </p:panel> 
         
         
       <p:panel header="Interviewer Views">
       <h:panelGrid  cellpadding="10" style="width: 100%" columns="3" columnClasses="employeeDetailLabel,gridCellMiddleLeftAligned">  
          
           <h:outputLabel value="Expected Joining Date" />
           <h:outputLabel value=":" />
           <p:calendar size="23" value="#{createFeedBackBean.recruitmentProfile.expectedJoiningDate}" pattern="dd-MMM-yyyy"/>
           
           <h:outputLabel value="Strengths" />
           <h:outputLabel value=":" />
           <p:inputTextarea value="#{createFeedBackBean.strengths}" rows="1" autoResize="false" style="width:500px;"/>
           
           <h:outputLabel value="Areas of Improvement" />
           <h:outputLabel value=":" />
           <p:inputTextarea value="#{createFeedBackBean.areaOfImprovement}" rows="1" autoResize="false" style="width:500px;" />
           
           <h:outputLabel value="Remarks / Overall Impression" />
           <h:outputLabel value=":" />
           <p:inputTextarea value="#{createFeedBackBean.intwrFinalRemarks}" rows="1" autoResize="false" style="width:500px;"/>
           
           <h:outputLabel value="Final Recommendation " />
           <h:outputLabel value=":" />
           <p:selectOneMenu value="#{createFeedBackBean.intwr1FinaRecommendation}" style="width:160px;">
           		<f:selectItem itemLabel="--Choose One--" itemValue="" />
				<f:selectItem itemLabel="Recommended" itemValue="Recommended" />
				<f:selectItem itemLabel="Not Recommended" itemValue="Not Recommended" />
				<f:selectItem itemLabel="Recommended for Next Level" itemValue="Recommended for Next Level" />							
		   </p:selectOneMenu>            
    </h:panelGrid> 
   
    
     </p:panel>
      <h:panelGroup style="float:right;">
		           <p:commandButton value="Submit" action="#{createFeedBackBean.saveSkillRatings}" ajax="false">
			           	 <f:param id="rrfCode" name="rrfCode" value="#{createFeedBackBean.rrfCode}" />
						 <f:param id="activity" name="activity" value="CreateFeedBack" />
		           </p:commandButton>
		           
		           <p:commandButton value="Back" onclick="history.go(-1);" /> 		           
	  </h:panelGroup>  
     	
    </h:panelGrid>
       
     </h:form>
	</ui:define>
	
</ui:composition>
